package com.inputabc.qrcoderv1.ui.mainform.component;

import lombok.Data;

import javax.swing.*;
import java.awt.*;

/**
 * 主面板
 * @author gaoweiyi
 */
@Data
public class MainPanel extends JPanel {
    private SettingPanel settingPanel = new SettingPanel();
    private QRPanel qrPanel = new QRPanel();

    public MainPanel() {
        init();
    }

    public void init() {
        settingPanel.setName("settingPanel");
        qrPanel.setName("qrPanel");
        setLayout(new GridLayout(1, 2));
        add(settingPanel);
        add(qrPanel);
    }
}
